package com.songcha.library_common.util

import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import java.security.Permission

class PermissionUtil {
    companion object{
        /***
         * 检测权限
         */
       /* @JvmStatic
        fun checdkPermission(context: Context, permission: String):Int{
            if(Build.VERSION.SDK_INT<Build.VERSION_CODES.M) return PackageManager.PERMISSION_GRANTED
            else{
                return (ContextCompat.checkSelfPermission(context, permission))
            }
            //ActivityCompat.requestPermissions(context, arrayOf(permission), 1);
        }

        @JvmStatic
        fun reqeustPermission(context:Context,permission: Array<String>){

        }*/
    }
}